﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        function Aa(name) {

            console.log(`this`, this);
            this.name = name;
        }
        Aa.prototype.run = function () {
            console.log(`aa`);
        }
        function Bb(name1) {
          
            Aa.call(this,name1)
        }
        var b = new Bb(`lili`)
        console.log(b);
    </script>
</body>
</html>